package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.SysContractLabel;
import com.ruoyi.system.domain.SysTeacherClass;

/**
 * 合同明细Service接口
 *
 * @author ruoyi
 * @date 2025-06-17
 */
public interface ISysContractLabelService
{
    /**
     * 查询合同明细
     *
     * @param id 合同明细主键
     * @return 合同明细
     */
    public SysContractLabel selectSysContractLabelById(Long id);

    /**
     * 根据合同主键查询合同列表
     * @param contractId
     * @return
     */
    public List<SysContractLabel> selectSysContractLabelByContractId(Long contractId);

    /**
     * 查询合同明细列表
     *
     * @param sysContractLabel 合同明细
     * @return 合同明细集合
     */
    public List<SysContractLabel> selectSysContractLabelList(SysContractLabel sysContractLabel);

    /**
     * 根据教师主键查询合同明细
     * @param sysTeacherClass
     * @return
     */
    public List<SysContractLabel> selectContractLabelLIstByTeacherId(SysTeacherClass sysTeacherClass);

    /**
     * 新增合同明细
     *
     * @param sysContractLabel 合同明细
     * @return 结果
     */
    public int insertSysContractLabel(SysContractLabel sysContractLabel);

    /**
     * 构建合同明细
     * @param sysContractLabel
     * @return
     */
    public SysContractLabel buildSysContractLabel(SysContractLabel sysContractLabel);

    /**
     * 新增合同明细判断方法
     * @param sysContractLabel
     */
    public void emptyInsertSysContractLabel(SysContractLabel sysContractLabel);

    /**
     * 修改合同明细
     *
     * @param sysContractLabel 合同明细
     * @return 结果
     */
    public int updateSysContractLabel(SysContractLabel sysContractLabel);

    /**
     * 批量删除合同明细
     *
     * @param ids 需要删除的合同明细主键集合
     * @return 结果
     */
    public int deleteSysContractLabelByIds(Long[] ids);

    /**
     * 删除合同明细
     * @param id
     * @return
     */
    public int deleteSysContractLabelById(Long id);

    /**
     * 根据合同主键删除合同明细
     * @param contractId
     * @return
     */
    public int deleteSysContractLabelByContractId(Long contractId);
}